package org.dschini.ui.maps.world.southamerica {

	import flash.display.Sprite;
	import org.dschini.ui.maps.*;

	public class BoliviaMap extends Map
	{
		public var boliviaMapStateLines:Sprite;
		public var boliviaMapShape:Sprite;
		
		override public function set mouseEnabled( mouseEnabled:Boolean ):void
		{
			super.mouseEnabled = mouseEnabled;
			boliviaMapShape.mouseEnabled = mouseEnabled;
			boliviaMapStateLines.mouseEnabled = mouseEnabled;
		}
		
		override public function set doubleClickEnabled( doubleClickEnabled:Boolean ):void
		{
			super.doubleClickEnabled = doubleClickEnabled;
			boliviaMapShape.doubleClickEnabled = doubleClickEnabled;
			boliviaMapStateLines.doubleClickEnabled = doubleClickEnabled;
		}
		
		override public function render():void
		{
			boliviaMapShape.visible = data.shapeVisible ? true : false;
			if( data.shapeColorTransform ){
				boliviaMapShape.transform.colorTransform = data.shapeColorTransform;
			}
			boliviaMapStateLines.visible = data.stateLinesVisible ? true : false;
			if( data.stateLinesColorTransform ){
				boliviaMapStateLines.transform.colorTransform = data.stateLinesColorTransform;
			}
		}
	}	
}
